from PyQt5.QtCore import QThread


class thread(QThread):
    def __init__(self,target):
        super(thread,self).__init__()
        self.f = target
    
    def run(self):
        self.f()